<?php
namespace app\index\controller;
use think\Db;
use app\models\User;

class Notice extends Base
{
    public function Index(){
    	$data=Db::name('introduction')->where(array('type' =>1,))->select();
    	$this->assign('data',$data);
    	return view();
    }
    public function indexAjax(){
    	return view();
    }
    public function authCompany(){
    	$data=Db::name('introduction')->where(array('type' =>0,))->find();
    	$this->assign('data',$data);
    	return view();
    }

    public function detail(){
    	$id = input('id');
    	$data=Db::name('introduction')->where(array('id' =>$id))->find();
    	$this->assign('data',$data);
    	return view();
    }

}